<% @page_title = "The Campus: Volumes" %>
<h1>Volumes</h1>

<table>
  <tr>
  <% for column in Volume.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>

<% for volume in @volumes %>
  <tr>
  <% for column in Volume.content_columns %>
    <td><%=h volume.send(column.name) %></td>
  <% end %>

     <td><%= link_to 'List issues', { :action => 'list_issues_by_volume', :id => volume }  %></td>

    <td><%= link_to 'Show', :action => 'show_volume', :id => volume %></td>
    <td><%= link_to 'Edit', :action => 'edit_volume', :id => volume %></td>

    <td><%= link_to 'Destroy', { :action => 'destroy_volume', :id => volume }, :confirm => 'Are you sure?' %></td>

  </tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @volume_pages.current.previous } if @volume_pages.current.previous %>
<%= link_to 'Next page', { :page => @volume_pages.current.next } if @volume_pages.current.next %>

<br />

<%= link_to 'New volume', :action => 'new_volume' %>
